/**
 * 
 * 根据分类字段进行数据过滤的基类方法，主从类型业务的从表业务可继承该类方法
 * @author : jackson wang
 * @Date   : 2015年10月3日 下午9:47:33
 * @version: 1.0
 * @param <T> 泛型需定义的业务类实体
 */
package org.brisling.duties.service.base;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.brisling.base.domain.inf.BaseTypeDomainInf;
import org.brisling.base.service.BaseTypeService;
import org.brisling.common.ConstSysParam;
import org.springframework.beans.factory.annotation.Autowired;

public class BaseDutiesTypeService<T extends BaseTypeDomainInf> extends BaseTypeService<T>{

	
	@PersistenceContext(unitName=ConstSysParam.SUBSYSTEM_SYSMAN)
	@Autowired
	protected void setEntityManager(EntityManager entityManager){
		this.entityManager = entityManager;
		this.subSystem = ConstSysParam.SUBSYSTEM_DUTIES;
	}
}
